﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ContinueRegistration.aspx.cs" Inherits="ElectronicJournal.Account.ContinueRegistration" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<asp:Panel ID = "NextRegistrationPanel" runat = server>
    <asp:Label runat="server" ID="CongratulationLabel">Вы успешно подтвердили Вашу учетную запись.
Теперь необходимо выбрать направление Вашей деятельности на нашем ресурсе</asp:Label>

    <asp:RadioButtonList ID="RoleChoiceList" runat="server">
        <asp:ListItem Value="Author" Text="Автор" ></asp:ListItem>
        <asp:ListItem Value="Reviewer" Text="Рецензент"></asp:ListItem>
    </asp:RadioButtonList> 

    
    <asp:Button ID="NextRegistrationBtn" Text = "Продолжить" runat = "server" OnClick = "NextRegistrationBtn_Click"  />
  </asp:Panel>
  <asp:Panel ID = "EndRegistration" runat = server>
                            <p>
                                <asp:Label ID="FirstNameLabel" runat="server" AssociatedControlID="FirstName">Имя</asp:Label>
                                <asp:TextBox ID="FirstName" runat="server" CssClass="textEntry"></asp:TextBox>
                            </p>

                            <p>
                                <asp:Label ID="LastNameLabel" runat="server" AssociatedControlID="LastName">Фамилия</asp:Label>
                                <asp:TextBox ID="LastName" runat="server" CssClass="textEntry"></asp:TextBox>
                            </p>
                            
                            <p>
                                <asp:Label ID="ThirdNameLabel" runat="server" AssociatedControlID="ThirdName">Отчество</asp:Label>
                                <asp:TextBox ID="ThirdName" runat="server" CssClass="textEntry"></asp:TextBox>
                            </p>
                            
                           <% if(Roles.IsUserInRole(_membershipUser.UserName, "Reviewer")) { %>

                            <p>
                                <asp:Label ID="NotifyByEmailLabel" runat="server" AssociatedControlID="NotifyByEmail">Получать оповещения на e-mail</asp:Label>
                                <asp:Checkbox ID="NotifyByEmail" runat="server" />
                            </p>

                            <p>
                                <asp:Label ID="PhoneNumberReviewerLabel" runat="server" AssociatedControlID="PhoneNumberReviewer">Телефон</asp:Label>
                                <asp:TextBox ID="PhoneNumberReviewer" runat="server" />
                            </p>

                            <p>
                                <asp:Label ID="NotifyBySmsLabel" runat="server" AssociatedControlID="NotifyBySms">Получать оповещения по смс</asp:Label>
                                <asp:Checkbox ID="NotifyBySms" runat="server" />
                            </p>
                                                        
                            <% } %>

                            
                            <% if (Roles.IsUserInRole(_membershipUser.UserName, "Author")) { %>

                            <p>
                                <asp:Label ID="NotifyPublicationStateByEmailLabel" runat="server" AssociatedControlID="NotifyPublicationStateByEmail">Получать оповещения о состоянии публикации на e-mail </asp:Label>
                                <asp:Checkbox ID="NotifyPublicationStateByEmail" runat="server" />
                            </p>

                            <p>
                                <asp:Label ID="NotifyMagazineNewsLabel" runat="server" AssociatedControlID="NotifyMagazineNews">Получать новости журнала</asp:Label>
                                <asp:Checkbox ID="NotifyMagazineNews" runat="server" />
                               
                            </p>

                            <p>
                             <asp:DropDownList ID="ScientificDirectionDropDown" runat="server">
                                </asp:DropDownList>
                            </p>

                            <p>
                                <asp:Label ID="PhoneNumberAuthorLabel" runat="server" AssociatedControlID="PhoneNumberAuthor">Телефон</asp:Label>
                                <asp:TextBox ID="PhoneNumberAuthor" runat="server" />
                            </p>

                            <% } %>
                         <asp:Button ID="FinishRegistration" Text = "Закончить регистрацию" runat = "server" OnClick = "FinishRegistrationBtn_Click"  />
</asp:Panel>

<asp:Panel ID = "FinishRegistrationPanel" runat = server>
<p> 
<%= _membershipUser.UserName %>, Вы успешно прошли регистрацию!
</p>

                 <% if (Roles.IsUserInRole(_membershipUser.UserName, "Author")){%>
                   <asp:HyperLink ID="AuthorAccount" NavigateUrl="~/Account/AuthorAccount/MyAccount.aspx" Text="Личный кабинет"
                  Target="_new" runat="server"></asp:HyperLink>

                  <% }%>
                  <% if(Roles.IsUserInRole(_membershipUser.UserName, "Reviewer")) { %>
                      //   NavigateUrl="EditorAccount\Default.aspx"
                  <%} %>>
</asp:Panel>

<asp:Panel ID = "IsSubmitRegistrationPanel" Visible = false runat = server>
<p> Регистрация уже была подтверждена.</p> 
 <asp:HyperLink ID="HyperLink1" NavigateUrl="~/Account/AuthorAccount/MyAccount.aspx" Text="Личный кабинет"
                  Target="_new" runat="server"></asp:HyperLink>
</asp:Panel>

</asp:Content>


